import * as crud from '@/api/crud'
import request from '@/utils/request'
import { makeRequestJson } from '@/utils/common'

export function list(query) {
  return crud.list({ method: 'post', url: '/order/', query: query })
}

export function peerStock(data) {
  return request(makeRequestJson('post', '/line/peerStock', data))
}

export function changeStatus(data) {
  return request(makeRequestJson('post', '/order/changeStatus', data))
}

export function changeOutTime(data) {
  return request(makeRequestJson('post', '/order/changeOutTime', data))
}

//
// export function update(data) {
//   return crud.update({ method: 'post', url: '/peer/update', data: data })
// }
